export const getChannels = () => {
    return JSON.parse(window.localStorage.getItem('channels'))
}
export const setChannels = (value) => {
    window.localStorage.setItem('channels', JSON.stringify(value))
}
export const setToken = (value) => {
    window.localStorage.setItem('qmt_token', JSON.stringify(value))
}
export const getToken = () => {
    return JSON.parse(window.localStorage.getItem('qmt_token'))
}
export const getHistory = () => {
    return JSON.parse(window.localStorage.getItem('history'))
}
export const setHistorys = (value) => {
    return window.localStorage.setItem('history', JSON.stringify(value))
}